/*
 * Config.h
 *
 *  Created on: Mar 8, 2012
 *      Author: luiz
 */

#ifndef CONFIG_H_
#define CONFIG_H_

#include <string>
#include <map>

class Config
{
    Config();
    static Config *instance;
    static std::map<std::string,std::string> config_strings;
    void read_config_file(std::string config_file);

public:

    virtual ~Config();
    static Config & get_instance()
    {
        if(!instance) {
            instance = new Config();
        }
        return *instance;
    }
    static void delete_instance();
    static std::string get_config_string(std::string config_key);

};

#endif /* CONFIG_H_ */
